from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy.orm import Session

from core.db.database import engine
from core.models.models import Logs


def write_to_database(record):
    Logs.create(obj_in=record)

